package com.yyfax.ph.common.widgets;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;

/**
 * Created by fan on 2017/4/11.
 * Copyright  2017 www.yylending.com. All Rights Reserved.
 */
public class AllDisplayGridView extends GridView {

	public AllDisplayGridView(Context context) {
		super(context);
	}

	public AllDisplayGridView(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public AllDisplayGridView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
		int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
		super.onMeasure(widthMeasureSpec, expandSpec);
	}
}
